<style>
    input{
        border-radius: 10px!important;
    }
</style>
<form class="form-horizontal" id="form-system-setting">
    <div class="form-group">
        <label class="control-label col-xs-2">
            一级佣金比例：
        </label>
        <div class="col-xs-6">
            <input name="commission1" type="number" class="form-control" value="{$arr.commission1|default='0'}" required/>
        </div>
        <label style="text-align: left" class="control-label col-xs-4">
            %
        </label>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-2">
            二级佣金比例：
        </label>
        <div class="col-xs-6">
            <input name="commission2" type="number" class="form-control" value="{$arr.commission2|default='0'}" required/>
        </div>
        <label style="text-align: left" class="control-label col-xs-4">
            %
        </label>
    </div>
    <div class="form-group" style="display: none;">
        <label class="control-label col-xs-2">
            三级佣金比例：
        </label>
        <div class="col-xs-6">
            <input name="commission3" type="number" class="form-control" value="{$arr.commission3|default='0'}" required/>
        </div>
        <label style="text-align: left" class="control-label col-xs-4">
            %
        </label>
    </div>
    <!--提交-->
    <div class="form-group">
        <label class="control-label col-xs-2"></label>
        <div class="col-xs-3">
            <button type="submit" class="btn btn-success btn-block">
                提交
            </button>
        </div>
    </div>
</form>
<script src="__PUBLIC__/vendors/jquery.validation/jquery.validate.min.js"></script>
<script src="__PUBLIC__/vendors/jquery.validation/additional-methods.js"></script>
<script src="__PUBLIC__/vendors/jquery.validation/messages_zh.min.js"></script>
<script>
    $(function () {
        /*验证*/
        $("#form-system-setting").validate({
            debug: true,
            submitHandler: function () {
                ajaxSubmit('form-system-setting', true);
            }
        });
    })

</script>